//
//  WSJBaseVC.m
//  WSJBaseProject
//
//  Created by wsj2015 on 2016/11/18.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJBaseVC.h"

@interface WSJBaseVC ()

@end

@implementation WSJBaseVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self configUI];
    
   
}

- (void)configUI{

}

- (void)addNavButton:(BOOL)isLeft withImage:(NSString *)iamgeName withTarget:(id)obj WithAction:(SEL)action{
    

    UIBarButtonItem *right2 =[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:iamgeName] style:0 target:obj action:action];
    
    if (isLeft) {
         self.navigationItem.leftBarButtonItems =@[right2];
    }else{
         self.navigationItem.rightBarButtonItems =@[right2];
    }
  
}


@end
